package com.cskt.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cskt.common.condition.SearchOrderCondition;
import com.cskt.common.condition.ValidateRoomStoreCondition;
import com.cskt.common.vo.ListHotelOrderVO;
import com.cskt.common.vo.PersonalOrderRoomVO;
import com.cskt.common.vo.RoomStoreVO;
import com.cskt.entity.HotelOrder;

import java.util.List;

public interface HotelOrderMapper extends BaseMapper<HotelOrder> {
    /**
     * 根据条件预生成订单
     * @param condition
     * @return
     */
    RoomStoreVO selectRoomStoreVOByCondition(ValidateRoomStoreCondition condition);
    PersonalOrderRoomVO selectPersonalOrderRoomVOByOrderId(Long orderId);
    /**
     * 订单列表分页查询
     * @param condition
     * @return
     */
    List<ListHotelOrderVO> selectOrderVOListByCondition(SearchOrderCondition condition);
    /**
     * 订单列表分页查询数量
     * @param condition
     * @return
     */
    Integer selectOrderVOCountByCondition(SearchOrderCondition condition);
}